package src.ten;

import java.util.*;

public class EmpMap {
    public static void main(String[] args) {
        Map<String, Emp> empMap = new HashMap<>();
        for (int i = 0; i < 6; i++) {
            Emp emp = new Emp("00"+i,i+"名字");
            empMap.put("00"+i,emp);
        }
        Set<String> strings = empMap.keySet();
        Iterator<String> iterator = strings.iterator();
        while (iterator.hasNext()){
//            String next = iterator.next();
//            Emp emp = empMap.get(next);
            System.out.print(iterator.next()+",");
        }
        empMap.remove("005");
        Emp emp = empMap.get("005");
        if(emp == null){
            System.out.println("已删除");
        }
    }
}
